<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="filesystem.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="ref.filesystem.html">文件系统函数 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.filesystem.html">文件系统</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="filesystem.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.seek-set">
    <strong><code>SEEK_SET</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.seek-cur">
    <strong><code>SEEK_CUR</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.seek-end">
    <strong><code>SEEK_END</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.lock-sh">
    <strong><code>LOCK_SH</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.lock-ex">
    <strong><code>LOCK_EX</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.lock-un">
    <strong><code>LOCK_UN</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.lock-nb">
    <strong><code>LOCK_NB</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.glob-brace">
    <strong><code>GLOB_BRACE</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.glob-onlydir">
    <strong><code>GLOB_ONLYDIR</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.glob-mark">
    <strong><code>GLOB_MARK</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.glob-nosort">
    <strong><code>GLOB_NOSORT</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.glob-nocheck">
    <strong><code>GLOB_NOCHECK</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.glob-noescape">
    <strong><code>GLOB_NOESCAPE</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.glob-available-flags">
    <strong><code>GLOB_AVAILABLE_FLAGS</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.pathinfo-dirname">
    <strong><code>PATHINFO_DIRNAME</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.pathinfo-basename">
    <strong><code>PATHINFO_BASENAME</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.pathinfo-extension">
    <strong><code>PATHINFO_EXTENSION</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.pathinfo-filename">
    <strong><code>PATHINFO_FILENAME</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.file-use-include-path">
    <strong><code>FILE_USE_INCLUDE_PATH</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     在 <a href="ini.core.html#ini.include-path" class="link">include_path</a> 里搜索 <code class="parameter">filename</code>。
    </span>
   </dd>

  
  
   <dt id="constant.file-no-default-context">
    <strong><code>FILE_NO_DEFAULT_CONTEXT</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.file-append">
    <strong><code>FILE_APPEND</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     为存在的文件添加内容。
    </span>
   </dd>

  
  
   <dt id="constant.file-ignore-new-lines">
    <strong><code>FILE_IGNORE_NEW_LINES</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     过滤换行（EOL）字符。
    </span>
   </dd>

  
  
   <dt id="constant.file-skip-empty-lines">
    <strong><code>FILE_SKIP_EMPTY_LINES</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     过滤空行。
    </span>
   </dd>

  

  
   <dt id="constant.file-binary">
    <strong><code>FILE_BINARY</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para">
     二进制模式。
     <blockquote class="note"><p><strong class="note">注意</strong>: 
      <p class="para">
       此常量无效，仅仅用于向后兼容（<code class="literal">forward compatibility</code>）。
      </p>
     </p></blockquote>
    </p>
   </dd>

  

  
   <dt id="constant.file-text">
    <strong><code>FILE_TEXT</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para">
     文本模式。
     <blockquote class="note"><p><strong class="note">注意</strong>: 
      <p class="para">
       此常量无效，仅仅用于向后兼容（<code class="literal">forward compatibility</code>）。
      </p>
     </p></blockquote>
    </p>
   </dd>

  

  
   <dt id="constant.ini-scanner-normal">
    <strong><code>INI_SCANNER_NORMAL</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     普通的 INI 扫描模式。
    </span>
   </dd>

  

  
   <dt id="constant.ini-scanner-raw">
    <strong><code>INI_SCANNER_RAW</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     原始（Raw） INI 扫描模式。
    </span>
   </dd>

  
 
  
   <dt id="constant.ini-scanner-typed">
    <strong><code>INI_SCANNER_TYPED</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     Typed INI 扫描模式。
    </span>
   </dd>

  
 
  
   <dt id="constant.fnm-noescape">
    <strong><code>FNM_NOESCAPE</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     禁用反斜线转义
    </span>
   </dd>

  

  
   <dt id="constant.fnm-pathname">
    <strong><code>FNM_PATHNAME</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     字符串里的斜杠只匹配指定模式里的斜杠。
    </span>
   </dd>

  

  
   <dt id="constant.fnm-period">
    <strong><code>FNM_PERIOD</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     字符串里的起始点号必须完全匹配指定模式里的点号。
    </span>
   </dd>

  

  
   <dt id="constant.fnm-casefold">
    <strong><code>FNM_CASEFOLD</code></strong>
     (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     大小写不敏感的匹配，GNU 扩展的一部分。
    </span>
   </dd>

  

 </dl>

</div>
</div></div></body></html>